package com.antler.smt.admin.mapper;

import com.antler.smt.entity.PurchaserAccountEntity;
import com.antler.smt.request.admin.PurchserAccountReq;
import com.antler.smt.response.portal.GetPurchaserAccountResp;
import org.springframework.stereotype.Repository;

@Repository
public interface PurchaserAccountInfoMapper {

    /**
     *  获取其采购商账户信息
     *
     * @param memberId
     * @return
     */
    PurchaserAccountEntity selectPurchaserAccountByMemberId(Long memberId);

    /**
     *  更新采购商账户信息
     *
     * @param memberId
     * @return
     */
    int updatePurchaserAccountByMemberId(Long memberId);

    /**
     * 更新采购商账户余额
     *
     * @param accountReq
     * @return
     */
    int updatPurchaserAccount(PurchserAccountReq accountReq);

    /**
     * 获取账户信息
     *
     * @param orderId
     * @return
     */
    PurchaserAccountEntity selectAccountByOrderId(Long orderId);
}